<?php
	$title="普记";
	require_once $_site->get_handlepath('info');
	//加盟动态
	$join_trend = info_fun_info_list(array('cid'=>82,'hidden_flag'=>0,'cat'=>1),1,15);

	require_once $_site->get_handlepath('pic');
	$list = pic_fun_pic_list(array('cid'=>182,'hidden_flag'=>0,'cat'=>1),1,6);		
	
	require_once $_site->get_viewpath("wap/commom/head");
?>


<body>
	<div class="top">
    	<div class="logo"><img src="/static/wapn/img/logo.jpg" /></div>
        <a href="/wap/login"><div class="adress"><em class="icon_group"></em></div></a>
    </div>
	<?php 
	  $banner = $list['rows'];
	  if($banner){
	?>
<link type="text/css" href="/static/wapn/plugin/css/base.css" rel="stylesheet" />
<link rel="stylesheet" href="/static/dist/css/swiper.min.css">
    <style>

    .swiper-container {
        width: 100%;
        height: 100%;
    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }
    </style>
<?php 
}
?>
    <div class="banner">
	
	<?php 
	if($banner){
	?>	
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
        <?php 
          foreach($banner as $val){
        ?>
        <div class="swiper-slide">
        	<img src="<?php echo $val['indexpicurl'];?>"   />
        </div>		
        <?php 
          }
        ?>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
        <!-- Add Arrows -->

    </div>

    <!-- Swiper JS -->
    <script src="/static/dist/js/swiper.min.js"></script>

    <!-- Initialize Swiper -->
    <script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        spaceBetween: 30,
        autoplay: 2500,
        autoplayDisableOnInteraction: false		
    });
    </script>	
	<?php
	}else{
	?>
	<img src="/static/wapn/img/banner.jpg" />
	<?php
	}
	?>
 
	</div>
	
	
	
	
    <div class="dc"><a href="/wap/project"><img src="/static/wapn/img/dc_img.jpg" /></a></div>
    <div class="join">
    	<ul>
        	<li>
            	<a href="/wap/intro">
                    <em><img src="/static/wapn/img/about.jpg" /></em>
                    <span>品牌介绍</span>
                </a>
            </li>
            <li>
            	<a href="/wap/project?type=3">
                    <em><img src="/static/wapn/img/project.jpg" /></em>
                    <span>项目展示</span>
                </a>
            </li>
            <li>
            	<a href="/wap/jm">
                    <em><img src="/static/wapn/img/join.jpg" /></em>
                    <span>连锁合作</span>
                </a>
            </li>	
        </ul>
    </div>
    <div class="nc">
    	<div class="news col_1">
        	<div class="news_top"><span>品牌快讯</span><a href="/wap/news">更多</a></div>
       	    <div class="news_bottom">
                
			<ul>
				<?php
					if(is_array($join_trend['rows'])){
						foreach ($join_trend['rows'] as $v){
							echo"
								<li>
									<a href='/wap/news&id={$v['id']}'>
										<em class='icon_stop'></em>
										".subs($v['title'],10)."
									</a>
								</li>
							";
						}
					}else{
						echo"<li class='no_info'>暂无信息！</li>";
					}
				?>
			</ul>                
                
        	</div>
        </div>
        <div class="center col_2"><a href="/wap/login"><img src="/static/wapn/img/center.jpg" /></a></div>
    </div>
    <?php require_once $_site->get_viewpath("wap/commom/bottom");?>
</body>
</html>
